<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = [7, 5, 12, 3, 30];
			var t;
			for (var i = 0; i < arr.length; i++) {//比较的轮数
				for (var j = 0; j < arr.length - i - 1; j++) {//每一轮比较的次数，次数随轮数增加而减少，因为每一轮都能确定一个最大数
					if (arr[j] > arr[j + 1]) {
						t = arr[j + 1];
						arr[j + 1] = arr[j];
						arr[j] = t;
					}
				}
			}

			for (var x = 0; x < arr.length; x++) {
				console.log(arr[x]);
			}
			
			
			var stuId = 1;
			var stuName = '张三';
			
			var stuId2 = 2;
			var stuName2 = '李四';
			
			var stuId3 = 3;
			var stuName3 = '王五';
			
			
			var stu = [1,'张三'];
			var stu2 = [2,'李四'];
			var stu3 = [3,'王五'];
			
			//二维数组
			var arr2 = [][];
		</script>
	</body>
</html>
